//先设计静态菜单
import {
    DesktopOutlined,
    FileOutlined,
    PieChartOutlined,
    TeamOutlined,
    UserOutlined,
    PauseCircleOutlined
} from '@ant-design/icons';
import {Link} from "react-router-dom"
const items = [
    { key: "/home/", label: <Link to="/home/">首页</Link>, icon: <DesktopOutlined /> },
    { key: "/home/user", label: <Link to="/home/user">用户管理</Link>, icon: <UserOutlined /> },
    { key: "/home/role", label:<Link to="/home/role">角色管理</Link> , icon: <PieChartOutlined /> },
    { key: "/home/shop", label:<Link to="/home/shop">店铺管理</Link> , icon: <TeamOutlined /> },
    { key: "/home/product", label:"商品管理", icon: <FileOutlined />,children:[
        {key:"/home/list",label:<Link to="/home/list">商品列表</Link>},
        {key:"/home/category",label:<Link to="/home/category">商品分类</Link>}
    ] },
    { key: "/home/chart", label: "财务管理", icon: <PauseCircleOutlined />,children:[
        {key:"/home/salary",label: <Link to="/home/salary">工资管理</Link>},
        {key:"/home/sale",label: <Link to="/home/sale">销售数据</Link>}
    ] },
]


export default items